// custom-tab-bar/index.js
const app = getApp();
Page({
  data: {
    baseUrl:app.baseUrl,
    version: app.globalData.version,
    selected: 0,
    color: "#2C2C2C",
    selectedColor: "#2C2C2C",
    fabuColor: "#e5482d",
    list: [{
      "pagePath": "/pages/index/index",
      "text": "",
      "iconPath": "/images/bottomnav/nav1_1.png",
      "selectedIconPath": "/images/bottomnav/nav1_2.png"
    },
    {
      "pagePath": "/pages/brochure/index",
      "text": "",
      "iconPath": "/images/bottomnav/nav2_1.png",
      "selectedIconPath": "/images/bottomnav/nav2_2.png"
    },
    {
      "pagePath": "/pages/IDCard/index",
      "text": "",
      "iconPath": "/images/bottomnav/nav3_1.png",
      "selectedIconPath": "/images/bottomnav/nav3_2.png"
    },
    {
      "pagePath": "/pages/square/index",
      "text": "",
      "iconPath": "/images/bottomnav/nav4_1.png",
      "selectedIconPath": "/images/bottomnav/nav4_2.png"
    },
    {
      "pagePath": "/pages/my/index",
      "text": "",
      "iconPath": "/images/bottomnav/nav5_1.png",
      "selectedIconPath": "/images/bottomnav/nav5_2.png"
    }
  ]
  },
  switchTab(e) {
    const data = e.currentTarget.dataset;
    const url = data.path;
    wx.switchTab({url})
   
  },
})
